import Vue from 'vue'
import VueRouter from 'vue-router'
import ProductProfile from '../views/ProductProfile/index.vue'
import PersonnelFiles from '../views/PersonnelFiles/index.vue'
import PriceList from '../views/PriceList/index.vue'
import ProductionOrder from '../views/ProductionOrder/index.vue'
import scqk from '../views/scqk/index.vue'
import gz from '../views/gz/index.vue'
import scmxb from '../views/scmxb/index.vue'
import tmmx from '../views/tmmx/index.vue'
import index from '../views/AboutView.vue'
import jjmx from '../views/jjmx/index.vue'
import dsjd from '../views/dsjd/index.vue'
Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'index',
		component: index
	}, {
		path: '/ProductProfile',
		name: 'ProductProfile',
		component: ProductProfile,
		children: [{
			path: '/ProductProfile/jd',
			component: () => import( /* webpackChunkName: "about" */ '../views/ProductProfile/jd.vue')
		}]
	},
	{
		path: '/PersonnelFiles',
		name: 'PersonnelFiles',
		component: PersonnelFiles,
		children: [{
			path: '/PersonnelFiles/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/PersonnelFiles/da.vue')
		}]
	},
	{
		path: '/PriceList',
		name: 'PriceList',
		component: PriceList,
		children: [{
			path: '/PriceList/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/PriceList/biao.vue')
		}]
	},
	{
		path: '/ProductionOrder',
		name: 'ProductionOrder',
		component: ProductionOrder,
		children: [{
			path: '/ProductionOrder/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/ProductionOrder/add.vue')
		}]
	},
	{
		path: '/scqk',
		name: 'scqk',
		component: scqk,
		children: [{
			path: '/scqk/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/scqk/biao.vue')
		}]
	},
	{
		path: '/gz',
		name: 'gz',
		component: gz,
		children: [{
			path: '/gz/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/gz/add.vue')
		}]
	},
	{
		path: '/scmxb',
		name: 'scmxb',
		component: scmxb,
		children: [{
			path: '/scmxb/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/scmxb/cz.vue')
		}]
	},
	{
		path: '/tmmx',
		name: 'tmmx',
		component: tmmx,
		children: [{
			path: '/tmmx/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/tmmx/cz.vue')
		}]
	},
	{
		path: '/jjmx',
		name: 'jjmx',
		component: jjmx,
		children: [{
			path: '/jjmx/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/jjmx/cz.vue')
		}]
	},{
		path: '/dsjd',
		name: 'dsjd',
		component: dsjd,
		children: [{
			path: '/dsjd/index',
			component: () => import( /* webpackChunkName: "about" */ '../views/dsjd/cz.vue')
		}]
	},
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router